package com.atxiaodei.alibabacloud.service;

import com.atxiaodei.springcloud.entities.CommonResult;
import com.atxiaodei.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @ClassName PaymentFallbackService
 * @Deacription TODO
 * @Author 王盟
 * @Date 2021/2/27 17:16
 * @Version 1.0
 **/
@Component
public class PaymentFallbackService implements PaymentService{


    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444,"服务降级返回，---PaymentFallbackService",new Payment(id,"ErrorSerial"));
    }
}
